Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 2 - Geometric Shapes / Geometric Shapes Reference
Functions / Drawing Geometric Shapes


GXDrawRectangle

You can use the GXDrawRectangle function to draw a rectangle without creating a rectangle shape.

void GXDrawRectangle(const gxRectangle *data, gxShapeFill fill);
data
A pointer to the rectangle geometry you want to draw.
fill
The shape fill to use when drawing the rectangle.
DESCRIPTION
The GXDrawRectangle function draws the rectangle geometry specified by the data parameter, using the shape fill specified by the fill parameter, and the style, ink, and transform of the default rectangle shape.

ERRORS, WARNINGS, AND NOTICES
Errors 
out_of_memory 
parameter_is_nil(debugging version)
shapeFill_is_not_allowed(debugging version)
SEE ALSO
For examples using this function, see "Creating and Drawing Rectangles" beginning on page 2-43.

For more information about rectangles and the default rectangle shape, see "Rectangle Shapes" on page 2-20.

For the definition of the gxRectangle structure, see page 2-106.

For more information about drawing shapes, see the description of the GXDrawShape function in the chapter "Shape Objects" in Inside Macintosh: QuickDraw GX Objects.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help